<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="crm.util.ParamUtil"%>
<%@page import="crm.control.RecepitControl"%>
<%@page import="crm.control.BargainControl"%>

<%
     request.setCharacterEncoding("UTF-8");
     String bargainId=ParamUtil.getString(request,"bargainId");
     if(bargainId!=null){
         bargainId = new String(bargainId.getBytes("iso-8859-1"), "utf-8");
     }
     System.out.println(bargainId);
     if(BargainControl.bargainIdIsExist(bargainId)){
     	out.write("0");
     } else{
     	out.write("1");
     }
%>